Fix domctl GCC dependency
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 12 Dec 2007 09:54:21 +0000 (09:54 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 12 Dec 2007 09:54:21 +0000 (09:54 +0000)
Compilers other than GCC don't allow zero-sized structs.

Signed-off-by: John Levon <john.levon@sun.com>
xen/include/public/domctl.h

index 5d9a44c3ee8a3c4763ed63ffd78dbfb42a4cbcb9..dbd25ce293479115c79fd6bcaefa2dd81364569b 100644 (file)
@@ -544,8 +544,11 @@ DEFINE_XEN_GUEST_HANDLE(xen_domctl_ext_vcpucontext_t);
  */
 #define XEN_DOMCTL_set_opt_feature    44
 struct xen_domctl_set_opt_feature {
-#ifdef __ia64__
+#if defined(__ia64__)
     struct xen_ia64_opt_feature optf;
+#else
+    /* Make struct non-empty: do not depend on this field name! */
+    uint64_t dummy;
 #endif
 };
 typedef struct xen_domctl_set_opt_feature xen_domctl_set_opt_feature_t;